﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="OrderManager.ascx.cs" Inherits="Admin_OrderManager" %>
<asp:Panel ID="pnAllOrder" runat="server">
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
        AutoGenerateSelectButton="True" EnableModelValidation="True" onselectedindexchanged="GridView1_SelectedIndexChanged"  
      >
        <Columns>
            <asp:BoundField DataField="OrderID" HeaderText="OrderID" />
            <asp:BoundField DataField="UserName" HeaderText="CustomerID" />
            <asp:BoundField DataField="OrderTime" HeaderText="OrderTime" />
            <asp:BoundField DataField="ShippingAddress" HeaderText="Shipping Address" />
            <asp:BoundField DataField="PaymentDetail" HeaderText="Payment Details" />
            <asp:BoundField DataField="TotalPrice" HeaderText="Total Price" />
            <asp:BoundField DataField="OrderStatus" HeaderText="Order Status" />
        </Columns>
        <EmptyDataTemplate>
            Not Found
        </EmptyDataTemplate>
    </asp:GridView>
    &nbsp;<br />
    <asp:Button ID="btnAllOrder" runat="server" Text="All Order" 
        onclick="btnAllOrder_Click" />
    &nbsp;
    <asp:Button ID="btnPending" runat="server" Text="Filter Pending" 
        onclick="btnPending_Click" />
    &nbsp;
    <asp:Button ID="btnShip" runat="server" Text="Filter Shipped" 
        onclick="btnShip_Click" />
    &nbsp;
    <asp:Button ID="btnDeclined" runat="server" Text="Filter Declined" 
        onclick="btnDeclined_Click" />
    <br />
</asp:Panel>

